<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui">

    <h:form id="frmTitle">
        <p:growl id="msgs" showDetail="false"/>
        <h:panelGrid columns="2" cellpadding="1">
            <h:outputText value="#{msgs.instituicaoTitulo}" styleClass="fontTitle"/>
        </h:panelGrid>
    </h:form>

    <h:form id="frmEdit">

        <p:fieldset legend="#{msgs.instituicaoLgdNovo}">

            <h:panelGrid columns="2" id="pngNew">            

                <p:outputLabel for="lblnome" value="#{msgs.nome}"/>
                <h:panelGrid columns="2">     
                    <p:inputText id="lblnome" value="#{instituicaoEditMB.strnome}" required="true" binding="#{instituicaoEditMB.nome}" size="45"/>
                </h:panelGrid>

                <p:outputLabel for="lblnomefantasia" value="#{msgs.nomeFantasia}"/>
                <h:panelGrid columns="2">     
                    <p:inputText id="lblnomefantasia" value="#{instituicaoEditMB.strnomefantasia}" binding="#{instituicaoEditMB.nomefantasia}" size="45"/>
                </h:panelGrid>

                <p:outputLabel for="lblcnpj" value="#{msgs.cnpj}"/>
                <h:panelGrid columns="2">     
                    <p:inputMask id="lblcnpj" value="#{instituicaoEditMB.strcnpj}" required="true" binding="#{instituicaoEditMB.cnpj}" mask="99.999.999/9999-99"/>
                </h:panelGrid>

                <h:panelGrid columns="2">
                    <p:commandButton id="btnSalvar" value="#{msgs.salvar}" action="#{instituicaoEditMB.salvar}" ajax="false"/>
                    <p:commandButton id="btnLalvar" value="#{msgs.voltar}" action="#{instituicaoEditMB.voltar}" ajax="false"/> 
                </h:panelGrid>
            </h:panelGrid>
        </p:fieldset>
    </h:form>
</html>

